using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Headsight.BPMN2WF.BPMN.Model
{
    [TestClass]
    public class BPMNParameterSoRTest
    {
        private BPMNArgument _sut;

        [TestInitialize]
        public void SetUp()
        {
            _sut = new BPMNArgument("*id*", typeof (Boolean));
        }

        [TestMethod]
        public void Ctor2()
        {
            _sut = new BPMNArgument("*id*", typeof(Boolean));

            Assert.AreEqual("*id*", _sut.Id);
            Assert.AreEqual(typeof(Boolean), _sut.Type);
            Assert.AreEqual(null, _sut.Expression);
        }

        [TestMethod]
        public void Ctor3()
        {
            _sut = new BPMNArgument("*id*", typeof(Boolean), "*expression*");

            Assert.AreEqual("*id*", _sut.Id);
            Assert.AreEqual(typeof(Boolean), _sut.Type);
            Assert.AreEqual("*expression*", _sut.Expression);
        }
    }
}